package campus.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AssetsLiabilitiesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AssetsLiabilitiesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andZcIdIsNull() {
            addCriterion("zc_id is null");
            return (Criteria) this;
        }

        public Criteria andZcIdIsNotNull() {
            addCriterion("zc_id is not null");
            return (Criteria) this;
        }

        public Criteria andZcIdEqualTo(Integer value) {
            addCriterion("zc_id =", value, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdNotEqualTo(Integer value) {
            addCriterion("zc_id <>", value, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdGreaterThan(Integer value) {
            addCriterion("zc_id >", value, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("zc_id >=", value, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdLessThan(Integer value) {
            addCriterion("zc_id <", value, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdLessThanOrEqualTo(Integer value) {
            addCriterion("zc_id <=", value, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdIn(List<Integer> values) {
            addCriterion("zc_id in", values, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdNotIn(List<Integer> values) {
            addCriterion("zc_id not in", values, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdBetween(Integer value1, Integer value2) {
            addCriterion("zc_id between", value1, value2, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcIdNotBetween(Integer value1, Integer value2) {
            addCriterion("zc_id not between", value1, value2, "zcId");
            return (Criteria) this;
        }

        public Criteria andZcAssetsIsNull() {
            addCriterion("zc_assets is null");
            return (Criteria) this;
        }

        public Criteria andZcAssetsIsNotNull() {
            addCriterion("zc_assets is not null");
            return (Criteria) this;
        }

        public Criteria andZcAssetsEqualTo(String value) {
            addCriterion("zc_assets =", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsNotEqualTo(String value) {
            addCriterion("zc_assets <>", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsGreaterThan(String value) {
            addCriterion("zc_assets >", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsGreaterThanOrEqualTo(String value) {
            addCriterion("zc_assets >=", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsLessThan(String value) {
            addCriterion("zc_assets <", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsLessThanOrEqualTo(String value) {
            addCriterion("zc_assets <=", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsLike(String value) {
            addCriterion("zc_assets like", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsNotLike(String value) {
            addCriterion("zc_assets not like", value, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsIn(List<String> values) {
            addCriterion("zc_assets in", values, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsNotIn(List<String> values) {
            addCriterion("zc_assets not in", values, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsBetween(String value1, String value2) {
            addCriterion("zc_assets between", value1, value2, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcAssetsNotBetween(String value1, String value2) {
            addCriterion("zc_assets not between", value1, value2, "zcAssets");
            return (Criteria) this;
        }

        public Criteria andZcLineIsNull() {
            addCriterion("zc_line is null");
            return (Criteria) this;
        }

        public Criteria andZcLineIsNotNull() {
            addCriterion("zc_line is not null");
            return (Criteria) this;
        }

        public Criteria andZcLineEqualTo(String value) {
            addCriterion("zc_line =", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineNotEqualTo(String value) {
            addCriterion("zc_line <>", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineGreaterThan(String value) {
            addCriterion("zc_line >", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineGreaterThanOrEqualTo(String value) {
            addCriterion("zc_line >=", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineLessThan(String value) {
            addCriterion("zc_line <", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineLessThanOrEqualTo(String value) {
            addCriterion("zc_line <=", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineLike(String value) {
            addCriterion("zc_line like", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineNotLike(String value) {
            addCriterion("zc_line not like", value, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineIn(List<String> values) {
            addCriterion("zc_line in", values, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineNotIn(List<String> values) {
            addCriterion("zc_line not in", values, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineBetween(String value1, String value2) {
            addCriterion("zc_line between", value1, value2, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcLineNotBetween(String value1, String value2) {
            addCriterion("zc_line not between", value1, value2, "zcLine");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceIsNull() {
            addCriterion("zc_ending_balance is null");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceIsNotNull() {
            addCriterion("zc_ending_balance is not null");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceEqualTo(BigDecimal value) {
            addCriterion("zc_ending_balance =", value, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceNotEqualTo(BigDecimal value) {
            addCriterion("zc_ending_balance <>", value, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceGreaterThan(BigDecimal value) {
            addCriterion("zc_ending_balance >", value, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("zc_ending_balance >=", value, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceLessThan(BigDecimal value) {
            addCriterion("zc_ending_balance <", value, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("zc_ending_balance <=", value, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceIn(List<BigDecimal> values) {
            addCriterion("zc_ending_balance in", values, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceNotIn(List<BigDecimal> values) {
            addCriterion("zc_ending_balance not in", values, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("zc_ending_balance between", value1, value2, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("zc_ending_balance not between", value1, value2, "zcEndingBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceIsNull() {
            addCriterion("zc_beginning_balance is null");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceIsNotNull() {
            addCriterion("zc_beginning_balance is not null");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceEqualTo(String value) {
            addCriterion("zc_beginning_balance =", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceNotEqualTo(String value) {
            addCriterion("zc_beginning_balance <>", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceGreaterThan(String value) {
            addCriterion("zc_beginning_balance >", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceGreaterThanOrEqualTo(String value) {
            addCriterion("zc_beginning_balance >=", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceLessThan(String value) {
            addCriterion("zc_beginning_balance <", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceLessThanOrEqualTo(String value) {
            addCriterion("zc_beginning_balance <=", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceLike(String value) {
            addCriterion("zc_beginning_balance like", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceNotLike(String value) {
            addCriterion("zc_beginning_balance not like", value, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceIn(List<String> values) {
            addCriterion("zc_beginning_balance in", values, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceNotIn(List<String> values) {
            addCriterion("zc_beginning_balance not in", values, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceBetween(String value1, String value2) {
            addCriterion("zc_beginning_balance between", value1, value2, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalanceNotBetween(String value1, String value2) {
            addCriterion("zc_beginning_balance not between", value1, value2, "zcBeginningBalance");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesIsNull() {
            addCriterion("zc_liabilities is null");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesIsNotNull() {
            addCriterion("zc_liabilities is not null");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesEqualTo(String value) {
            addCriterion("zc_liabilities =", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesNotEqualTo(String value) {
            addCriterion("zc_liabilities <>", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesGreaterThan(String value) {
            addCriterion("zc_liabilities >", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesGreaterThanOrEqualTo(String value) {
            addCriterion("zc_liabilities >=", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesLessThan(String value) {
            addCriterion("zc_liabilities <", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesLessThanOrEqualTo(String value) {
            addCriterion("zc_liabilities <=", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesLike(String value) {
            addCriterion("zc_liabilities like", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesNotLike(String value) {
            addCriterion("zc_liabilities not like", value, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesIn(List<String> values) {
            addCriterion("zc_liabilities in", values, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesNotIn(List<String> values) {
            addCriterion("zc_liabilities not in", values, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesBetween(String value1, String value2) {
            addCriterion("zc_liabilities between", value1, value2, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLiabilitiesNotBetween(String value1, String value2) {
            addCriterion("zc_liabilities not between", value1, value2, "zcLiabilities");
            return (Criteria) this;
        }

        public Criteria andZcLine2IsNull() {
            addCriterion("zc_line2 is null");
            return (Criteria) this;
        }

        public Criteria andZcLine2IsNotNull() {
            addCriterion("zc_line2 is not null");
            return (Criteria) this;
        }

        public Criteria andZcLine2EqualTo(String value) {
            addCriterion("zc_line2 =", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2NotEqualTo(String value) {
            addCriterion("zc_line2 <>", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2GreaterThan(String value) {
            addCriterion("zc_line2 >", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2GreaterThanOrEqualTo(String value) {
            addCriterion("zc_line2 >=", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2LessThan(String value) {
            addCriterion("zc_line2 <", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2LessThanOrEqualTo(String value) {
            addCriterion("zc_line2 <=", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2Like(String value) {
            addCriterion("zc_line2 like", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2NotLike(String value) {
            addCriterion("zc_line2 not like", value, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2In(List<String> values) {
            addCriterion("zc_line2 in", values, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2NotIn(List<String> values) {
            addCriterion("zc_line2 not in", values, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2Between(String value1, String value2) {
            addCriterion("zc_line2 between", value1, value2, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcLine2NotBetween(String value1, String value2) {
            addCriterion("zc_line2 not between", value1, value2, "zcLine2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2IsNull() {
            addCriterion("zc_ending_balance2 is null");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2IsNotNull() {
            addCriterion("zc_ending_balance2 is not null");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2EqualTo(String value) {
            addCriterion("zc_ending_balance2 =", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2NotEqualTo(String value) {
            addCriterion("zc_ending_balance2 <>", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2GreaterThan(String value) {
            addCriterion("zc_ending_balance2 >", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2GreaterThanOrEqualTo(String value) {
            addCriterion("zc_ending_balance2 >=", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2LessThan(String value) {
            addCriterion("zc_ending_balance2 <", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2LessThanOrEqualTo(String value) {
            addCriterion("zc_ending_balance2 <=", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2Like(String value) {
            addCriterion("zc_ending_balance2 like", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2NotLike(String value) {
            addCriterion("zc_ending_balance2 not like", value, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2In(List<String> values) {
            addCriterion("zc_ending_balance2 in", values, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2NotIn(List<String> values) {
            addCriterion("zc_ending_balance2 not in", values, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2Between(String value1, String value2) {
            addCriterion("zc_ending_balance2 between", value1, value2, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcEndingBalance2NotBetween(String value1, String value2) {
            addCriterion("zc_ending_balance2 not between", value1, value2, "zcEndingBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2IsNull() {
            addCriterion("zc_beginning_balance2 is null");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2IsNotNull() {
            addCriterion("zc_beginning_balance2 is not null");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2EqualTo(String value) {
            addCriterion("zc_beginning_balance2 =", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2NotEqualTo(String value) {
            addCriterion("zc_beginning_balance2 <>", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2GreaterThan(String value) {
            addCriterion("zc_beginning_balance2 >", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2GreaterThanOrEqualTo(String value) {
            addCriterion("zc_beginning_balance2 >=", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2LessThan(String value) {
            addCriterion("zc_beginning_balance2 <", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2LessThanOrEqualTo(String value) {
            addCriterion("zc_beginning_balance2 <=", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2Like(String value) {
            addCriterion("zc_beginning_balance2 like", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2NotLike(String value) {
            addCriterion("zc_beginning_balance2 not like", value, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2In(List<String> values) {
            addCriterion("zc_beginning_balance2 in", values, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2NotIn(List<String> values) {
            addCriterion("zc_beginning_balance2 not in", values, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2Between(String value1, String value2) {
            addCriterion("zc_beginning_balance2 between", value1, value2, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcBeginningBalance2NotBetween(String value1, String value2) {
            addCriterion("zc_beginning_balance2 not between", value1, value2, "zcBeginningBalance2");
            return (Criteria) this;
        }

        public Criteria andZcCdateIsNull() {
            addCriterion("zc_cdate is null");
            return (Criteria) this;
        }

        public Criteria andZcCdateIsNotNull() {
            addCriterion("zc_cdate is not null");
            return (Criteria) this;
        }

        public Criteria andZcCdateEqualTo(Date value) {
            addCriterion("zc_cdate =", value, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateNotEqualTo(Date value) {
            addCriterion("zc_cdate <>", value, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateGreaterThan(Date value) {
            addCriterion("zc_cdate >", value, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateGreaterThanOrEqualTo(Date value) {
            addCriterion("zc_cdate >=", value, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateLessThan(Date value) {
            addCriterion("zc_cdate <", value, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateLessThanOrEqualTo(Date value) {
            addCriterion("zc_cdate <=", value, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateIn(List<Date> values) {
            addCriterion("zc_cdate in", values, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateNotIn(List<Date> values) {
            addCriterion("zc_cdate not in", values, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateBetween(Date value1, Date value2) {
            addCriterion("zc_cdate between", value1, value2, "zcCdate");
            return (Criteria) this;
        }

        public Criteria andZcCdateNotBetween(Date value1, Date value2) {
            addCriterion("zc_cdate not between", value1, value2, "zcCdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}